package ModelLayer;

/**
 * The Person class is a Person.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class Person
{
    private int id;
    private String name;
    private String address;
    private String zipCode;
    private String city;
    private String phoneNumber;

    /**
     * Constructor for objects of class Person
     * 
     * @param id - the id of the Person
     * @param name - the name of the Person
     * @param address - the address of the Person
     * @param zipCode - the zipCode of the Persons city
     * @param city - the city the Petrson resides in
     * @param phoneNumber - the phoneNumber of the Person
     */
    public Person(int id, String name, String address, String zipCode, String city, String phoneNumber)
    {
        this.id = id;
        this.name = name;
        this.address = address;
        this.zipCode = zipCode;
        this.city = city;
        this.phoneNumber = phoneNumber;
    }

    /**
     * returns person-id
     */

    public int getId()
    {
        return id;
    }

    /**
     * returns name of the person
     */
    public String getName()
    {
        return name;
    }

    /**
     * returns the address of the person
     */
    public String getAddress()
    {
        return address;
    }

    
    /**
     * returns the zip code of the city the person lives in
     */
    public String getZipCode()
    {
        return zipCode;
    }

    /**
     * returns the city the person lives in
     */
    public String getCity()
    {
        return city;
    }

    /**
     * returns the persons phone number
     */
    public String getPhoneNumber()
    {
        return phoneNumber;
    }

    /**
     * sets the person-ID
     */
    public void setId(int newId)
    {
        id = newId;
    }

    /**
     * sets the person name
     */
    public void setName(String newName)
    {
        name = newName;
    }

    /**
     * sets the persons address
     */
    public void setAddress(String newAddress)
    {
        address = newAddress;
    }

    /**
     * sets the zip code ogf the city the person resides in
     */
    public void setZipCode(String newZipCode)
    {
        zipCode = newZipCode;
    }

    /**
     * sets the city the person resides in
     */
    public void setCity(String newCity)
    {
        city = newCity;
    }

    /**
     * sets the persons phone number
     */
    public void setPhoneNumber(String newPhoneNumber)
    {
        phoneNumber = newPhoneNumber;
    }

}
